package com.tuanzi.loan.business.service.system;

import com.tuanzi.loan.business.entity.system.Advertise;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.system.AdvertiseSearchRequest;
import com.tuanzi.loan.vo.response.system.AdvertiseSearchResponse;
import org.springframework.data.domain.Page;

/**
 * @author Ray 2017/09/21
 */
public interface AdvertiseService {
    
    Page<AdvertiseSearchResponse> list(PageSearcher<AdvertiseSearchRequest> pageSearcher);

    Advertise findOne(Long id);

    Advertise saveOrUpdate(Advertise advertise);

    void delete(Long id);
}
